/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef EMULEX_INTERFACE_NETWORK_PORT_H
#define EMULEX_INTERFACE_NETWORK_PORT_H

#include <iomanip>
#include <mc/core/timer.h>
#include <mc/engine/service.h>
#include <sstream>
#include <string>

#include <device_tree/interface/NetworkPort.h>
#include <pldm_over_mctp/pldm_over_mctp_emulex.h>

namespace dev {

using pldm_over_mctp_emulex_ptr = std::shared_ptr<pldm_over_mctp_emulex>;
class NetworkPort : public mc::engine::interface<NetworkPort, gen::NetworkPort> {
public:
    NetworkPort()  = default;
    ~NetworkPort() = default;

    bool
        SendNcsiTestPacket(uint8_t            cmd_code,
                       const std::string& req_data) override;
    bool SetLLDPTxEnable(bool enable) override;
};

} // namespace dev

#endif // NETWORK_PORT_H